package com.wn.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * (Catering)实体类
 *
 * @author makejava
 * @since 2020-10-26 09:28:42
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Catering implements Serializable {
    private static final long serialVersionUID = -41778387925717031L;

    private String id;

    @NotEmpty(message = "店名不能为空")
    @Size(max = 30,message = "长度不能超过30个字符")
    private String name;

    @NotEmpty(message = "星级不能为空")
    @Size(min = 1,max = 1,message = "请输入正确的星级")
    private String star;

    @NotEmpty(message = "地区不能为空")
    private String areaid;

    @NotEmpty(message = "详细地址不能为空")
    @Size(min = 2,max = 10,message = "长度在2到10个字符")
    private String address;

    @NotEmpty(message = "联系人不能为空")
    @Size(max = 30,message = "长度不能超过30个字符")
    private String contactname;

    @NotEmpty(message = "联系电话不能为空")
    @Size(min = 11,max = 11,message = "手机号为11个字符")
    private String contactphone;

    @NotNull(message = "价格不能为空")
    private Double price;

    @NotEmpty(message = "特色介绍不能为空")
    private String feat;

    @NotEmpty(message = "图片不能为空")
    private String img;

    @NotNull(message = "经度不能为空")
    private Double longitude;

    @NotNull(message = "纬度不能为空")
    private Double latitude;

    private String createuserid;

    private Date createtime;

    private String updatauserid;

    private Date updatatime;

    private Integer isdeleted;


}